//
//  main.m
//  自定义类的深浅拷贝
//
//  Created by Jerry on 15-7-22.
//  Copyright (c) 2015年 Jerry. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JYDog.h"

int main(int argc, const char * argv[]) {
    @autoreleasepool {
        
        JYDog *dog1 = [[JYDog alloc] init];
        dog1.age = 2;
        JYDog *dog2 = [dog1 copy];
        NSLog(@"dog1:%p", dog1);
        NSLog(@"dog2:%p", dog2);
        NSLog(@"dog2.age = %d", dog2.age);
        
    }
    return 0;
}
